package il.ac.braude.sona.entities;

import il.ac.braude.sona.gui.list_table.FieldInfo;

import java.io.Serializable;
/**
 * Entity for saving a system message
 * @author Ofek Ron
 * @author Avihay Avitan
 * @author Nitzan Inbar
 * @author Sasha Rozenthal
 */
public class Messege implements Serializable {
	/**
	 * the request id
	 */
	@FieldInfo(name="Request ID", isVisibleOnTable = true)
	private String rid;
	/**
	 * the request execution id
	 */
	private String eid;
	/**
	 * the message String
	 */
	@FieldInfo(name="Messege", isVisibleOnTable = true)
	private String mssg;
	/**
	 * the user whose messsage belong to
	 */
	private String uid;
	/**
	 * Constructor for message data
	 * @param rid - the request id
	 * @param eid - the execution stage id
	 * @param mssg - the message to be sent
	 * @param uid  - the user who wil get the message
	 */
	public Messege(String rid, String eid,String mssg, String uid) {
		this.rid=rid;
		this.mssg=mssg;
		this.eid=eid;
		this.uid=uid;
	}
	/**
	 * @return request id
	 */
	public String getRid() {
		return rid;
	}
	/**
	 * sets request id with rid
	 * @param rid - the id to be set
	 */
	public void setRid(String rid) {
		this.rid = rid;
	}
	/**
	 * @return the execution stage id
	 */
	public String getEid() {
		return eid;
	}
	public void setEid(String eid) {
		this.eid = eid;
	}
	/**
	 * @return the message to be sent
	 */
	public String getMssg() {
		return mssg;
	}
	/**
	 * @return the user id
	 */
	public String getUid() {
		return uid;
	}
	public void setMssg(String mssg) {
		this.mssg = mssg;
	}

	
}
